/*
  Author: xiaokai 
        - email: xiaokai.c@foxmail.com 
        - gitee: https://gitee.com/xiaokaiC
*/


#ifndef SEQ_STACK_H
#define SEQ_STACK_H

typedef struct {  
    int top;
	  int cell_len;
    int max_len;
	  unsigned char *data;
}seq_stack_t;

void seq_stack_clean(seq_stack_t * stack);
unsigned char is_seq_stack_full(seq_stack_t * stack);
unsigned char is_seq_stack_empty(seq_stack_t * stack);
unsigned int get_seq_statck_length(seq_stack_t * stack);
unsigned char seq_stack_push(seq_stack_t * stack, void * data);
unsigned char seq_stack_pop(seq_stack_t * stack, void * data);
unsigned char seq_stack_top(seq_stack_t * stack, void * data);
#endif
